home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- ############################################################################
- # Copyright (C) 2005 by Patrick J. Verner #
- # exodusrobot@yahoo.com #
- # #
- # This program is free software; you can redistribute it and/or modify #
- # it under the terms of the GNU General Public License as published by #
- # the Free Software Foundation; either version 2 of the License, or #
- # (at your option) any later version. #
- ############################################################################
-
- #make sure temp exists
- temp=/tmp/depth
- temp1=/tmp/depth
- if [ ! -d $temp1 ]
- then
- mkdir -p $temp1
- chmod 700 $temp1
- fi
-
- #**********main menu**********
- item="24"
- while [ 0 ]
- do
- dialog --title "GParted LiveCD Display Depth" --default-item "$item" --backtitle "GParted Livecd" --menu "Select your screen depth:" 13 40 2 \
- "24" "" \
- "32" "" \
- 2> $temp1/return
- if [ ! $? = 0 ]
- then
- break
- fi
- REPLY=`cat $temp1/return`
- rm -f $temp1/return
-
- #24
- if [ "$REPLY" = "24" ]
- then
- cat >> /root/X << "EOF"
- 24 -shadow -3button -nolisten tcp
- EOF
- break
- fi
-
- #32
- if [ "$REPLY" = "32" ]
- then
- cat >> /root/X << "EOF"
- 32 -shadow -3button -nolisten tcp
- EOF
- break
- fi
- done